package day04;

public class Demo01 {
	public static void main(String[] args) {
		String str = doOther(12);
		System.out.println(str);
	}

	// 需求: 定义方法实现功能: 接收月份值, 返回相应的季节
	public static String doOther(int month) {
		switch (month) {
			case 3:
			case 4:
			case 5:
				return "春天";
			case 6:
			case 7:
			case 8:
				return "夏天";
			case 9:
			case 10:
			case 11:
				return "秋天";
			case 12:
			case 1:
			case 2:
				return "冬天";
			default:
				return "月份错误";
		}
	}

	//	public static int doSome() {
	//		Scanner sc = new Scanner(System.in);
	//		System.out.println("请输入整数");
	//		int i = sc.nextInt();
	//		if (i < 50) {
	//			return 1;
	//		} 
	//		return 0;
	//	}

}
